#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char ** argv)
{
  int A, B, C;

  cout << "number A: ";
  cin >> A ;
  cout << "number B: ";
  cin >> B ;
  cout << "number C: ";
  cin >> C ;

  if ( (B <= A && A<= C) || (C <= A && A<= B) )
      cout << "SREDN _ A: " << A << endl;
   else
     if ( (A <= B && B <= C) || (C <= B &&B <= A) )
       cout << "SREDN _ B " << B << endl;
   else
       cout << "SREDN _ C " << C << endl;
//  system(" ");
  return 0;
}



//std::cout << "Введите числa A,B и C: ";
//std::cin >> A >> B >> C;
//---------------------------------------------
//  cout << "number A: ";
//cin >> A ;
//cout << "number B: ";
//cin >> B ;
//cout << "number C: ";
//cin >> C ;
